package cn.tedu.day01.ssm.pojo;

import java.util.List;

public class Dept {
    private Integer deptId;
    private String deptName;
    private String loc; // 部门所在位置
    private List<Emp> emp;

    public List<Emp> getEmp() {
        return emp;
    }

    public void setEmp(List<Emp> emp) {

        this.emp = emp;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getLoc() {
        return loc;
    }

    public void setLoc(String loc) {
        this.loc = loc;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "deptId=" + deptId +
                ", deptName='" + deptName + '\'' +
                ", loc='" + loc + '\'' +
                ", emp='" + emp + '\'' +
                '}';
    }
}
